<template>
  <router-view></router-view>
  <toast-notification ref="toast" id="toast-container"></toast-notification>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    // 将toast实例挂载到this上，方便调用
    this.$toast = this.$refs.toast;
    
    // 也可以挂载到app.config.globalProperties上
    this.$root.$toast = this.$refs.toast;
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}

.navbar-brand {
  text-decoration: none;
}

.nav-link {
  color: #2c3e50;
}

.nav-link:hover {
  color: #42b983;
}
</style> 